package cn.buk.tms.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 火车票订单的乘机人信息
 * @author yfdai
 */
public class TrainOrderPassengerDto {

    private int id;

    /**
     * 乘客姓名
     */
    @NotNull
    @Size(min = 2, max = 50)
    private String name;

    /**
     * 证件类型
     */
    private int idType;

    /**
     * 证件号
     */
    private String idNo;

    /**
     * 手机
     */
    @Size(max = 20)
    private String mobile;

    /**
     * 车厢号
     */
    private String coachNo;

    /**
     * 座位号
     */
    private String seatNo;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIdType() {
        return idType;
    }

    public void setIdType(int idType) {
        this.idType = idType;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCoachNo() {
        return coachNo;
    }

    public void setCoachNo(String coachNo) {
        this.coachNo = coachNo;
    }

    public String getSeatNo() {
        return seatNo;
    }

    public void setSeatNo(String seatNo) {
        this.seatNo = seatNo;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
